package com.zl.service;

import com.zl.pojo.OrderDetail;

import java.util.List;

public interface OrderDetailService {
    //根据order的主键ID得到用户购物车商品列表
    List<OrderDetail> queryById(Integer id);
    //增加商品数量
    int updateODD(OrderDetail oda);
    //通过orderid和产品号查询
    OrderDetail query(Integer orderId,Integer productId);
    //查询总消费
    Double queryOrderCostByOrderId(Integer orderId);
    //删除商品
    int delete(OrderDetail odd);
}
